import requests

from common.get_header import get_header


class IhrmAddEmp(object):
    def add_ok(self, req_header,req_data):
        resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/user",
                             headers=req_header,json=req_data)
        return resp

if __name__ == '__main__':
    ihrm = IhrmAddEmp()

    req_data = {"username":"admin123","mobile":"13436857954","workNumber":"666"}
    ret = ihrm.add_ok(get_header(),req_data)
    print(ret.json())